﻿using System.Security.Principal;

namespace FormAuthentication.Practice.Areas.Admin.Models.SignIn
{
    public class AdminPrincipal:IPrincipal
    {
        public AdminPrincipal(IIdentity identity)
        {
            Identity = identity;
        }

        public IIdentity Identity
        {
            get;
        }

        public Admin User { get; set; }

        public bool IsInRole(string role)
        {
            return true;
        }
    }
}